<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="js/lib/easeljs.min.js"></script>
    <script src="js/lib/EventEmitter.min.js"></script>

</head>
<body onload="javascript : init();">
<!--<canvas id="demoCanvas" width="5000" height="5000"></canvas>-->
<audio preload="auto" id="audio" controls="controls" style="width: 100%;"><source src="http://7sbr2j.com2.z0.glb.qiniucdn.com/360720150728165327/audio.ogg"><source src="http://7sbr2j.com2.z0.glb.qiniucdn.com/360720150728165327/audio.mp3"><source src="http://7sbr2j.com2.z0.glb.qiniucdn.com/360720150728165327/audio.aac"></audio>
<script>
	function init(){
//		var audio = document.getElementById("audio");
//		audio.ontimeupdate = function(){
//			console.log('seeking');
//		}
		var i = 0;
		var aa = setTimeout(function(){
			while(true){
				console.log('hahahahaha:%s',i++);
			}
		},5000);
		setTimeout(function(){
			console.log('fafafafa');
			clearTimeout(aa);
		},6000)
		
	}

//  function init(){
//      var stage = new createjs.Stage("demoCanvas");
//      var image = new Image();
//      image.src = "http://7sbr2j.com2.z0.glb.qiniucdn.com/360720150728165327/resource/image/2.png";
//      image.onload = function(event){
//      	var bitmap = new createjs.Bitmap(event.target);
////      	bitmap.set({
////					x:0 + 57.7/2,
////					y:0 + 77.3/2,
////					rotation : 0,
////					scaleX : 57.7/event.target.width,
////					scaleY : 77.3/event.target.height,
////					regX : event.target.width/2,
////					regY : event.target.height/2
////				});
//			bitmap.set({
//					x:0 + 577/2,
//					y:0 + 773/2,
//					rotation : 0,
//					scaleX : 577/event.target.width,
//					scaleY : 773/event.target.height,
//					regX : event.target.width/2,
//					regY : event.target.height/2
//				});
//      	stage.addChild(bitmap);
//      	stage.update();
//      }
//		
//  }


</script>
</body>
</html>